import Flutter
import UIKit

public class GTLibFurnaceFlutterPlugin: NSObject, FlutterPlugin {

    public static func register(with registrar: FlutterPluginRegistrar) {
        print("GTFlutter - GTLibFurnaceFlutterPlugin register")
        GTFurnaceHostApiV2Setup.setUp(binaryMessenger: registrar.messenger(), api: GTFurnaceHostApiV2Impl())
    }

    public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
        print("GTFlutter - GTLibFurnaceFlutterPlugin handle")
    }
    
    public func detachFromEngine(for registrar: FlutterPluginRegistrar) {
        print("GTFlutter - GTLibFurnaceFlutterPlugin detachFromEngine")
        GTFurnaceHostApiV2Setup.setUp(binaryMessenger: registrar.messenger(), api: nil)
    }

}
